|
Radar Host Communication library
2020.08.13
|
EndpointMcuStatus documentation. More...
Data Structures | |
| struct | device_status_response_t |
Typedefs | |
| typedef void(* | Callback_Device_Status_t) (void *context, int32_t protocol_handle, uint8_t endpoint, const device_status_response_t *pStatus) |
Functions | |
| int32_t | ep_device_status_is_compatible_endpoint (int32_t protocol_handle, uint8_t endpoint) |
| This function checks if an endpoint in a device is a MCU Status endpoint. More... | |
| void | ep_device_status_set_callback_mcu_status (Callback_Device_Status_t callback, void *context) |
| This functions registers a callback device status. More... | |
| int32_t | ep_device_status_get_status (int32_t protocol_handle, uint8_t endpoint) |
EndpointMcuStatus documentation.
| typedef void(* Callback_Device_Status_t) (void *context, int32_t protocol_handle, uint8_t endpoint, const device_status_response_t *pStatus) |
Definition at line 103 of file EndpointRadarDeviceStatus.h.
| int32_t ep_device_status_get_status | ( | int32_t | protocol_handle, |
| uint8_t | endpoint | ||
| ) |
Definition at line 222 of file EndpointRadarDeviceStatus.c.
| int32_t ep_device_status_is_compatible_endpoint | ( | int32_t | protocol_handle, |
| uint8_t | endpoint | ||
| ) |
This function checks if an endpoint in a device is a MCU Status endpoint.
This function checks type and version of the specified endpoint in a connected device and returns a code that indicates if that endpoint is compatible to the radar endpoint implementation in this module.
| [in] | protocol_handle | A handle to the connection to the sensor device. |
| [in] | endpoint | The endpoint in the connected device to be checked for compatibility. |
Definition at line 209 of file EndpointRadarDeviceStatus.c.
| void ep_device_status_set_callback_mcu_status | ( | Callback_Device_Status_t | callback, |
| void * | context | ||
| ) |
This functions registers a callback device status.
If a callback for this message type is registered, that callback is issued every time, a connected board sends a message containing the frame format. If no callback is registered the message is ignored.
Connection and handle and endpoint number of the sending endpoint are passed to the callback along with the message data. Furthermore the pointer context set by this function is forwarded to the callback.
For more information about the callback function see Callback_Chirp_Duration_t.
| [in] | callback | The function to be called when a device statusrequest message is received. |
| [in] | context | A data pointer that is forwarded to the callback function. |
Definition at line 216 of file EndpointRadarDeviceStatus.c.